package com.example.x.dnuifood_929dx.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

/**
 * Created by X on 2018/11/1.
 */

public class MyAdapter extends FragmentPagerAdapter {
    private List<String>list;

    public MyAdapter(FragmentManager fm,List<String>list) {
        super(fm);
              this.list=list;
    }
    @Override
    public Fragment getItem(int position) {
        return null;
    }

    @Override
    public int getCount() {
        return list.size();
    }
   @Override
    public CharSequence getPageTitle(int position){
        return list.get(position);
   }

}
